All Questions
Tagged with entity-frameworkarchitecture
34 questions
1vote
1answer
2kviews
Mapping between Entity and ViewModel
I'm trying to make an application in ASP.NET MVC. I'm using AutoMapper for the conversion between entities and ViewModels. In most cases, this works fine, but when I need to add some additional data (...
2votes
2answers
3kviews
Where should helper classes/methods for transforming business data for the View be located
I have inherited a badly architected and organised ASP.NET MVC application, which is an online booking system for healthcare providers. It seems to have been designed with very few object oriented ...
1vote
2answers
1kviews
Should an AggregateRoot not be a database Entity?
TLDR: Does using DB objects as my AggregateRoot lead to bloated God objects. In comparison to the issues I see in using separate DbObjects and DDD objects. I'm trying to bring together my ...
1vote
0answers
406views
Should I use a Web API between a client and Entity Framework?
I am creating a database that will keep track of my company's clients, and an app that will allow users inside the company to read/update/etc. the database. I'm using code-first EF Core to manage the ...
1vote
1answer
63views
Pattern for schema split across sources
I was not sure how to title this question, but bear with me. My company is building a new product and for it we will use a third-party service (let's call it ENB for short) to be responsible for many ...
3votes
1answer
8kviews
How to avoid circular references with EF Core and Global Query Filters?
We're working on building a multitenant application, and we're using Entity Framework Core as our base data provider. With EF Core, you can use Global Query Filters to define custom filters that apply ...
4votes
3answers
3kviews
DataAccess Layer coupling with Domain Layer
We have an issue with how the implementation of the Data Access layer (EF6 Includes more specifically), influences the behavior of our Domain layer. A theoretical example to illustrate: Application ...
6votes
4answers
872views
How to incorporate external entity models in conceptual model?
If I want to create a conceptual model for my new application, and during the analysis, I found that some objects like employee, department ..etc are a part of another system. and all the data related ...
0votes
1answer
732views
About Three Layer Architecture
I'm currently developing a minor project for school and I'm supposed to use a three layer architecture in the project. I'm working with C# in .NET and I'm also working on Windows Forms, and with the ...
0votes
3answers
311views
Designing a CMS. When to use interfaces properly and dependencies and layering
I am building a CMS and need guidance on how to structure the application. I simply do not understand when I should use interfaces or an abstract class. The system being built is using .Net Core and ...
-2votes
1answer
3kviews
How do I use the same entities in multiple projects with the entity framework?
I have to create two different projects with the Entity Framework: Web API Services UI and Business Logic (MVC). Both the projects have to work with same POCO entities. I see two alternatives and ...
1vote
1answer
1kviews
Avoid core layer referencing DAL when defining repository interface
I'm trying to learn the N-Layer architecture and several other things, and I have a C# solution where I have the following layers: Core/Infrastructure (Folder) Core (Project) ...
43votes
5answers
61kviews
Is it good practice to use entity objects as data transfer objects?
I am wondering because if it is, why does Entity Framework not offer logic to create a new object with the same properties to transfer data between layers? I use the entity objects that I generate ...
0votes
2answers
129views
Creating different queries to DB for one object
In my appliaction I am using EF. I have the service that can provide some information and clients who want to ask for that information. Let's imagine that I have a User, which has Address, the list of ...
-2votes
3answers
892views
what is better way to architecture project
I am pretty new to angular.js world. I wanted to know best architecture for my solution. I have 4 projects in my solution. First is angular.js app solution which has below structure. Is this correct ...